Optimal. Leaf size=37 \[ \frac {\sin (e+f x) \cos (e+f x)}{2 a c f}+\frac {x}{2 a c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3522, 2635, 8} \[ \frac {\sin (e+f x) \cos (e+f x)}{2 a c f}+\frac {x}{2 a c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 3522
Rubi steps
\begin {align*} \int \frac {1}{(a+i a \tan (e+f x)) (c-i c \tan (e+f x))} \, dx &=\frac {\int \cos ^2(e+f x) \, dx}{a c}\\ &=\frac {\cos (e+f x) \sin (e+f x)}{2 a c f}+\frac {\int 1 \, dx}{2 a c}\\ &=\frac {x}{2 a c}+\frac {\cos (e+f x) \sin (e+f x)}{2 a c f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 29, normalized size = 0.78 \[ \frac {2 (e+f x)+\sin (2 (e+f x))}{4 a c f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.52, size = 46, normalized size = 1.24 \[ \frac {{\left (4 \, f x e^{\left (2 i \, f x + 2 i \, e\right )} - i \, e^{\left (4 i \, f x + 4 i \, e\right )} + i\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{8 \, a c f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.72, size = 46, normalized size = 1.24 \[ \frac {\frac {f x + e}{a c} + \frac {\tan \left (f x + e\right )}{{\left (\tan \left (f x + e\right )^{2} + 1\right )} a c}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.28, size = 90, normalized size = 2.43 \[ \frac {i \ln \left (\tan \left (f x +e \right )+i\right )}{4 f c a}+\frac {1}{4 f c a \left (\tan \left (f x +e \right )+i\right )}-\frac {i \ln \left (\tan \left (f x +e \right )-i\right )}{4 f c a}+\frac {1}{4 f c a \left (\tan \left (f x +e \right )-i\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.59, size = 32, normalized size = 0.86 \[ \frac {\frac {\sin \left (2\,e+2\,f\,x\right )}{4\,a\,c}+\frac {f\,x}{2\,a\,c}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.26, size = 119, normalized size = 3.22 \[ \begin {cases} \frac {\left (- 8 i a c f e^{4 i e} e^{2 i f x} + 8 i a c f e^{- 2 i f x}\right ) e^{- 2 i e}}{64 a^{2} c^{2} f^{2}} & \text {for}\: 64 a^{2} c^{2} f^{2} e^{2 i e} \neq 0 \\x \left (\frac {\left (e^{4 i e} + 2 e^{2 i e} + 1\right ) e^{- 2 i e}}{4 a c} - \frac {1}{2 a c}\right ) & \text {otherwise} \end {cases} + \frac {x}{2 a c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________